,System.Action{System.Exception},System.Action)} )} ,System.Action{System.Exception})} ,System.Action)}
AnonymousObserver(Action, Action, Action) constructor¶
Defined in
Type: AnonymousObserverSystem.Reactive
Assembly: System.Reactive.dll
Applies to
netstandard2.0
Overloads¶
- 1.
public AnonymousObserver(Action<T> onNext, Action<Exception> onError, Action onCompleted) - 2.
public AnonymousObserver(Action<T> onNext) - 3.
public AnonymousObserver(Action<T> onNext, Action<Exception> onError) - 4.
public AnonymousObserver(Action<T> onNext, Action onCompleted)
1. Overload¶
public AnonymousObserver(Action<T> onNext, Action<Exception> onError, Action onCompleted)
Summary: Creates an observer from the specified OnNext, OnError, and OnCompleted actions.
Parameters
| Name | Type | Description |
|---|---|---|
onNext | Action | Observer's OnNext action implementation. |
onError | Action | Observer's OnError action implementation. |
onCompleted | Action | Observer's OnCompleted action implementation. |
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentNullException | onNext or onError or onCompleted is null. |
2. Overload¶
public AnonymousObserver(Action<T> onNext)
Summary: Creates an observer from the specified OnNext action.
Parameters
| Name | Type | Description |
|---|---|---|
onNext | Action | Observer's OnNext action implementation. |
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentNullException | onNext is null. |
3. Overload¶
public AnonymousObserver(Action<T> onNext, Action<Exception> onError)
Summary: Creates an observer from the specified OnNext and OnError actions.
Parameters
| Name | Type | Description |
|---|---|---|
onNext | Action | Observer's OnNext action implementation. |
onError | Action | Observer's OnError action implementation. |
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentNullException | onNext or onError is null. |
4. Overload¶
public AnonymousObserver(Action<T> onNext, Action onCompleted)
Summary: Creates an observer from the specified OnNext and OnCompleted actions.
Parameters
| Name | Type | Description |
|---|---|---|
onNext | Action | Observer's OnNext action implementation. |
onCompleted | Action | Observer's OnCompleted action implementation. |
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentNullException | onNext or onCompleted is null. |